#ifndef SAVETYFS_H
#define SAVETYFS_H

#include "savebase.h"

/***
 *存储太阳辐射计信息
 * **/

class SaveTYFS : public SaveBase
{
    Q_OBJECT
public:
    explicit SaveTYFS(QObject *parent = nullptr);

    bool saveData(const QString &data);

    void createNewFile();

public slots:
    void onWorking(const QString ip, const quint16 port, const QByteArray arr);

    void onInitTimer()override{}     //初始化定时器, 本类不需要该函数

private:
    quint16 m_saveCount = 0;  //设置存储上限变量
};

#endif // SAVETYFS_H
